package com.example.dubbo.provider;


import com.example.dubbo.api.DemoService;
import org.apache.dubbo.rpc.RpcContext;

public class DemoServiceImpl implements DemoService {

    @Override
    public String sayHello(String name) {
        System.out.println("Hello " + name + ", request from consumer: " + RpcContext.getContext().getRemoteAddress());
        return "Hello " + name;
    }

}
